package com.qcby.model;

import com.qcby.model.dto.MovieSaveDto;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Movie implements Serializable {

    private static final long serialVersionUID = 8751637309032382943L;
    private MovieType movieType;

    private Integer mid;

    private Integer mtId;

    private Date releaseAt;

    private String mName;

    private String mDetail;

    private String fgName;

    private String mDuration;

    private String mPic;

    private String mStatus;

    public Movie(MovieSaveDto newMovie) {
        this.mtId = newMovie.getMtId();
        this.releaseAt = newMovie.getReleaseAt();
        this.mName = newMovie.getMName();
        this.mDetail = newMovie.getMDetail();
        this.fgName = newMovie.getFgName();
        this.mDuration = newMovie.getMDuration();
        this.mPic = newMovie.getMPic();
        this.mStatus = newMovie.getMStatus();
    }
}